package com.sample.test;

import java.io.IOException;

import com.sample.test.service.SampleServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.test.context.ContextConfiguration;

/**
 * Created by zhaolulun on 2017/7/14.
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.tiny.work"})
@ContextConfiguration(locations = "classpath:spring/applicationContext-*.xml")
public class Main {

    private static final Logger logger = LoggerFactory.getLogger(Main.class);

    public Main() throws IOException {

    }

    public static void main(String[] args) throws IOException {

        logger.info("XXXX Starting...");

        SpringApplication.run(Main.class, args);

        logger.info("XXXX Started...");

        SampleServiceImpl specific = new SampleServiceImpl();
        specific.getHouseResult(1);
    }
}
